export const getStatusInfo = (text) => {
  // console.log(text);
  let style
  switch (text) {
    case '退回':
    case '1':
    case 1: {
      style = {
        status: '1',
        statusText: '退回',
        color: 'rgba(255,5,5,1)',
        bgColor: 'rgba(255,5,5,0.1)',
      }
      break
    }
    case '待提交':
    case '0':
    case 0: {
      style = {
        status: '0',
        statusText: '待提交',
        color: 'rgb(252, 202, 0)',
        bgColor: 'rgba(252, 202, 0,0.21)',
      }
      break
    }
    case '待审核':
    case '2':
    case 2: {
      style = {
        status: '2',
        statusText: '待审核',
        color: 'rgb(56, 148, 255)',
        bgColor: 'rgba(56, 148, 255,0.17)',
      }
      break
    }
    case '未填写':
    case '-2':
    case -2: {
      style = {
        status: '-2',
        statusText: '未填写',
        color: 'rgb(154, 154, 154)',
        bgColor: 'rgb(239,239,239)',
      }
      break
    }
    case '通过':
    case '-1':
    case -1: {
      style = {
        status: '-1',
        statusText: '已通过',
        color: 'rgb(2, 196, 86)',
        bgColor: 'rgba(2, 196, 86,0.09)',
      }
      break
    }
    case 3:
    case '3': {
      style = {
        status: '3',
        statusText: '已填写',
        color: 'rgb(2, 196, 86)',
        bgColor: 'rgba(2, 196, 86,0.09)',
      }
      break
    }
    default:
      style = {
        status: 'x',
        statusText: '未填报',
        color: 'rgb(98,98,98)',
        bgColor: 'rgba(98, 98, 98,0.21)',
      }
  }
  return style
}
